﻿Public Class Form2

    Private Sub EToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EToolStripMenuItem.Click

        Shell("CMD.exe /c cd \Program Files\KDiff3\bin & diff file1 file2 > output.txt")
        'SendKeys.Send("C:\Program Files\KDiff3\bin\diff.exe")

        'SendKeys.Send("cd \Program Files\KDiff3\bin")
        'SendKeys.Send("(ENTER)")

        'SendKeys.Send("diff file1 file2 > output.txt")
        'SendKeys.Send("(ENTER)")
        MsgBox("TEST TEST")
    End Sub

    Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
        RichTextBox1.Text = ("C:\Program Files\KDiff3\bin\diff.exe   Comparing 2 files:kdiff3 file1 file2 Merging 2 files: kdiff3 file1 file2 -m kdiff3 file1 file2 -o outputfile    ")
    End Sub

    Private Sub CommsndLineToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CommsndLineToolStripMenuItem.Click

        RichTextBox1.Visible = True

    End Sub
End Class